/**
 * 
 */
package com.upstairstechnology.oi.notification.email.resolver;

import java.io.IOException;

import javax.mail.Address;
import javax.mail.internet.AddressException;

/**
 * 
 * 
 * @author Jeff Jensen
 */
public interface EmailResolver {

    /**
     * Get the email address for the specified userId.
     * 
     * @param userId
     *            The SCM user id to convert.
     * @return The email address for the specified userId.
     * @throws AddressException
     *             When error occurs converting the address string into an
     *             Address.
     * @throws IOException
     *             When error occurs obtaining email address.
     */
    Address getEmailAddress(String userId) throws AddressException, IOException;
}
